package com.hzit.bj1804.dian.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * HOMEADVER
 * @author 
 */
public class Homeadver implements Serializable {
    private BigDecimal adverid;

    private String slogan;

    private String adverpic;

    private Integer shownumber;

    private String theirgoods;

    private Short status;

    private Date createtime;

    private static final long serialVersionUID = 1L;

    public BigDecimal getAdverid() {
        return adverid;
    }

    public void setAdverid(BigDecimal adverid) {
        this.adverid = adverid;
    }

    public String getSlogan() {
        return slogan;
    }

    public void setSlogan(String slogan) {
        this.slogan = slogan;
    }

    public String getAdverpic() {
        return adverpic;
    }

    public void setAdverpic(String adverpic) {
        this.adverpic = adverpic;
    }

    public Integer getShownumber() {
        return shownumber;
    }

    public void setShownumber(Integer shownumber) {
        this.shownumber = shownumber;
    }

    public String getTheirgoods() {
        return theirgoods;
    }

    public void setTheirgoods(String theirgoods) {
        this.theirgoods = theirgoods;
    }

    public Short getStatus() {
        return status;
    }

    public void setStatus(Short status) {
        this.status = status;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Homeadver other = (Homeadver) that;
        return (this.getAdverid() == null ? other.getAdverid() == null : this.getAdverid().equals(other.getAdverid()))
            && (this.getSlogan() == null ? other.getSlogan() == null : this.getSlogan().equals(other.getSlogan()))
            && (this.getAdverpic() == null ? other.getAdverpic() == null : this.getAdverpic().equals(other.getAdverpic()))
            && (this.getShownumber() == null ? other.getShownumber() == null : this.getShownumber().equals(other.getShownumber()))
            && (this.getTheirgoods() == null ? other.getTheirgoods() == null : this.getTheirgoods().equals(other.getTheirgoods()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAdverid() == null) ? 0 : getAdverid().hashCode());
        result = prime * result + ((getSlogan() == null) ? 0 : getSlogan().hashCode());
        result = prime * result + ((getAdverpic() == null) ? 0 : getAdverpic().hashCode());
        result = prime * result + ((getShownumber() == null) ? 0 : getShownumber().hashCode());
        result = prime * result + ((getTheirgoods() == null) ? 0 : getTheirgoods().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", adverid=").append(adverid);
        sb.append(", slogan=").append(slogan);
        sb.append(", adverpic=").append(adverpic);
        sb.append(", shownumber=").append(shownumber);
        sb.append(", theirgoods=").append(theirgoods);
        sb.append(", status=").append(status);
        sb.append(", createtime=").append(createtime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}